
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Công nghệ Web & Ứng dụng</title>
</head>

    <?php
    require_once("mysql.php");
    require_once("function.php");
    
/* @var $idSP type */
     $idSP=$_GET['idSP'];
    $chitiet_sp = ChitietSP();
    $chitietthuoctinh  = ChitietThuocTinh($idSP);
    
    $row_chitietsp = mysql_fetch_array($chitiet_sp);
    $row_thuoctinh = mysql_fetch_array($chitietthuoctinh);
    ?>

<body>
    <div class="detail" align="center">
       
            <table style="width: 60%">
                <td><img src="upload/sanpham/hinhchinh/<?php echo $row_chitietsp['UrlHinh'] ?>"/></td>
                <td><?php echo $row_chitietsp['MoTa']?></td>
            </table>
    </div>  
    
      <!-- **********************************************************************************************-->
    <div style="width: 100%;" align="left">
        
        <ul>
            <li>
                <a>Thông tin sản phẩm</a>
            </li>
            <li>
                <a>Cấu hình chi tiết</a>
            </li>
          </ul>
        <table cellspacing="0" cellpadding="0" border="1" style="width: 60%" align="center">
            <tbody>
             
                <tr>
                    <td valign="top"><div>Cấu hình chi tiết</div></td>

                    <td colspan="2"><?php echo $row_thuoctinh['tinh_nang_noi_bat']?></td>
                 
                </tr>
      
      <!-- ***********************************************************************************************-->  
                <tr>
                    <td valign="top" rowspan="4"><div>Âm thanh</div></td>

                    <td>Audio</td>
                    <td><?php echo $row_thuoctinh['nhacchuong_loai']?></td>
                  
                </tr>
                 <tr>
                    <td>Video</td>
                    <td><?php echo $row_thuoctinh['xem_phim'] ;?></td>
                </tr>
                <tr>
                    <td>Kiểu chuông</td>
                    <td><?php if($row_thuoctinh['nhacchuong_loa_ngoai']==1)echo"Loa ngoài, ";
                              if($row_thuoctinh['nhacchuong_bao_rung']==1)echo"Rung.";
                              
                                  ;?></td>
                </tr>
                 <tr>
                    <td>Jack</td>
                    <td><?php echo $row_thuoctinh['nhacchuong_jack_tai_nghe'] ;?></td>
                </tr>
      <!-- ***********************************************************************************************-->
             
                <tr>
                    <td valign="top" rowspan="8"><div>Giải trí</div></td>
                    <td>Máy ảnh</td>
                    <td><?php if($row_thuoctinh['may_anh']=='-') echo "Không"; else echo $row_thuoctinh['may_anh']?></td>
                </tr>
                <tr>
                    <td>Đặc tính máy ảnh</td>
                    <td><?php if($row_thuoctinh['dac_tinh_may_anh']=='-') echo "Không"; else echo $row_thuoctinh['dac_tinh_may_anh']?></td>
                </tr>
                <tr>
                    <td>Máy ảnh phụ</td>
                    <td><?php if($row_thuoctinh['may_phu_anh']==1) echo "Có"; else echo "Không";?></td>
                </tr>
                <tr>
                    <td>Video call</td>
                    <td><?php if($row_thuoctinh['video_call']==1) echo "Có"; else echo "Không";?></td>
                </tr>
                <tr>
                    <td>Quay phim</td>
                    <td><?php if($row_thuoctinh['quay_phim']==1) echo "Có"; else echo "Không";?></td>
                </tr>
                <tr>
                    <td>Xem phim</td>
                    <td><?php echo $row_thuoctinh['xem_phim']?></td>
                </tr>
                <tr>
                    <td>FM radio</td>
                    <td><?php if($row_thuoctinh['fm_radio']==1) echo "Có"; else echo "Không";?></td>
                </tr>
                <tr>
                    <td>Xem tivi</td>
                    <td><?php echo $row_thuoctinh['xem_tivi']?></td>
                </tr>
       <!-- ***********************************************************************************************-->  
                <tr>
                    <td valign="top" rowspan="5"><div>Bô nhớ</div></td>
                    <td>Bộ nhớ trong</td>
                    <td><?php echo $row_thuoctinh['bonho_bo_nho_trong']?></td>
                </tr>
                <tr>
                    <td>Bộ nhớ ngoài</td>
                    <td><?php echo $row_thuoctinh['bonho_the_nho_ngoai']?></td>
                </tr>
                 <tr>
                    <td>RAM</td>
                    <td><?php echo $row_thuoctinh['bonho_ram']?></td>
                </tr>
                 <tr>
                    <td>CPU</td>
                    <td><?php echo $row_thuoctinh['bonho_vi_xu_ly_cpu']?></td>
                </tr>
                 <tr>
                    <td>Hỗ trợ tối đa</td>
                    <td><?php echo $row_thuoctinh['bonho_ho_tro_the_toi_da']?></td>
                </tr>
      <!--*********************************************************************************************-->
      
                 <tr>
                    <td valign="top" rowspan="6"><div>Ứng dụng và trò chơi</div></td>
                    <td>Ghi âm</td>
                    <td><?php if($row_thuoctinh['ghi_am']==1) echo "Có"; else echo "Không";?></td>
                </tr>
                <tr>
                    <td>Ghi âm cuộc gọi</td>
                   <td><?php if($row_thuoctinh['ghi_am_cuoc_goi']==1) echo "Có"; else echo "Không";?></td>
                </tr>
                <tr>
                    <td>Ghi âm FM</td>
                    <td><?php if($row_thuoctinh['ghi_am_fm']==1) echo "Có"; else echo "Không";?></td>
                </tr>
                <tr>
                    <td>Java</td>
                    <td><?php if($row_thuoctinh['java']==1) echo "Có"; else echo "Không";?></td>
                </tr>
               <tr>
                    <td>Trò chơi</td>
                    <td><?php echo $row_thuoctinh['tro_choi'];?></td>
                </tr>
                <tr>
                    <td>Kết nối tivi</td>
                    <td><?php if($row_thuoctinh['ket_noi_tv']==1) echo "Có"; else echo "Không";?></td>
                </tr>
                <tr>
                    <td>Ứng dụng văn phòng</td>
                    <td colspan="2"><?php echo $row_thuoctinh['ung_dung_van_phong'];?></td>
                </tr>
                 <tr>
                    <td>SMS</td>
                    <td colspan="2"><?php echo $row_thuoctinh['tin_nhan']; ?></td>
                </tr>
                <tr>
                    <td>Ứng dụng khác</td>
                    <td colspan="2"><?php echo $row_thuoctinh['ung_dung_khac']; ?></td>
                </tr>
             </tbody>   
        </table>
</body>
</html>
